{% extends 'djadmin/base.html' %}

{% block title %}
    首页 - Feiu CRM后台管理
{% endblock %}

{% block content %}
     <h1 class="page-header">所有应用</h1>
    {% for app_name, app_models in site.enable_admins.items %}

        <table class="table table-striped">
            <thead>
            <tr>
                <th>{{ app_name }}</th>
            </tr>
            </thead>
            <tbody>
            {% for model_name in app_models %}
                <tr>
                <td><a href="{% url 'djadmin:table_detail' app_name=app_name model_name=model_name %}">{{ model_name }}</a></td>
                    <td><a href="{% url 'djadmin:table_add' app_name=app_name model_name=model_name %}">增加</a></td>
{#                    <td><a href="{% url 'djadmin:table_change' app_name=app_name model_name=model_name obj_id=1 %}">修改</a></td>#}
                 <td><a href="#">修改</a></td>
                </tr>
            {% endfor %}
            </tbody>
        </table>
    {% endfor %}
{% endblock %}